Ext.define('DCApp.view.contributionuk.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.contributionuklist',
    
    requires: [
        'DCApp.controller.ListController',
        'DCApp.view.contributionuk.ListModel',
        'DCApp.view.GridFilters'
    ],

    controller: 'list',
    plugins: ['gfilters'],
    viewModel: {
        type: 'contributionuklist'
    },
    bind: {
        store: '{objs}'
    },
    header:false,

    selType: 'checkboxmodel',
    
    tbar: ['->',{
        text: '录入',
        handler: 'onNew'
    }],
    
	
	listeners: {
        itemdblclick: 'onDblClick'
    },
    
    columns: [
            {
                text     : '捐献物ID',
                dataIndex: 'conId',
                filter: 'number'
            },
            {
                text     : '捐献物名称',
                dataIndex: 'conName',
                filter: 'string'
            },
            {
                text     : '捐献物时代',
                dataIndex: 'conEra',
                filter: 'string'
            },
            {
                text     : '捐献物作者',
                dataIndex: 'conAuthor',
                filter: 'string'
            },
            {
                text     : '捐献物类别',
                dataIndex: 'conClass',
                filter: 'string'
            },
            {
                text     : '捐献物相关对象ID',
                dataIndex: 'conObjid',
                filter: 'number'
            },
            {
                text     : '时代ID',
                dataIndex: 'eraId',
                filter: 'number'
            },
            {
                text     : '捐献物相关对象文物编号',
                dataIndex: 'objId',
                filter: 'number'
            }
        ],
    initComponent: function(){
    	this.callParent();
    }
 });
